package complex.java.zip;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;

public class Base64 {
	public static void main(String[] args) {
		String inputString = "ids=123455678901234,123456978901234,123456789301234,123456778901234,123456785901234,123456788901234,123456789901234,123456278901234,123456728901234,123453678901234,123457678901234,123456789801234,123452678901234,123456789071234,123456728901234,123456078901234,123456734348901234,12345675678901234,12345613378901234,1234567128901234,1234567845901234,1234562378901234,1234567878901234,1234567867901234,1234567890132234,1234567892301234,1234567890132234,1234567892301234,1234567218901234,1234567833901234,123456789021234,123456789101234,123456784901234,123456738901234,123456789021234,123456789012934,123456789801234,123456789071234,123456789601234,123345678901234,123456785901234,123456783901234,123456789091234,123456768901234,123456788901234,123456718901234,123456768901234,123453678901234,123456783901234,123456789018234,123456788901234";
							 
		try {
			String s1 =new String(inputString.getBytes("UTF-8"),"ASCII");
			System.out.println(s1);
			
			
			
		} catch (UnsupportedEncodingException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		
//		System.out.println(inputString.getBytes().length);  
//		try {
//			byte[] decoder =(new BASE64Decoder()).decodeBuffer(inputString);
//			String temp =new String(decoder);
//			System.out.println(decoder.toString());
//			System.out.println(temp.getBytes().length);
//			String a = (new BASE64Encoder()).encodeBuffer(decoder.toString().getBytes());
//			System.out.println(a);
//			System.out.println(a.length());
//		} catch (IOException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
	}
}
